<!DOCTYPE html>
<html lang="CN_zh">
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<script src="/jquery.js"></script>
		<link rel="stylesheet" href="/style.css">
		<script src="/code.js"></script>
		<title>esp32-wifi-manager</title>
	</head>
	<body>
		<div id="app">
			<div id="app-wrap">
				<div id="wifi">
					<header>
						<h1>Wi-Fi</h1>
					</header>
					<div id="wifi-status">
						<h2>连接到:</h2>
						<section id="connected-to">
							<div class="ape"><div class="w0"><div class="pw"><span></span></div></div></div>
						</section>
					</div>
					<h2>手动连接</h2>
					<section id="manual_add">
					<div class="ape">添加 (HIDDEN) SSID<div>
					</section>
					<h2>或选择一个网络......</h2>
					<section id="wifi-list">
					</section>
					<div id="pwrdby"><em>Powered by </em><a id="acredits" href="#"><strong>esp32-wifi-manager</strong></a>.</div>
				</div>
				<div id="connect_manual">
					<header>
						<h1>输入细节</h1>
					</header>
					<h2>手动连接</span></h2>
					<section>
						<input id="manual_ssid" type="text" placeholder="SSID" value="">
						<input id="manual_pwd" type="password" placeholder="Password" value="">
					</section>
					<div class="buttons">
							<input id="manual_join" type="button" value="加入" data-connect="manual" />
							<input id="manual_cancel" type="button" value="取消"/>
					</div>
				</div>
				<div id="connect">
					<header>
						<h1>输入密码</h1>
					</header>
					<h2>Password for <span id="ssid-pwd"></span></h2>
					<section>
						<input id="pwd" type="password" placeholder="Password" value="">
					</section>
					<div class="buttons">
							<input id="join" type="button" value="加入" />
							<input id="cancel" type="button" value="取消"/>
					</div>
				</div>
				<div id="connect-wait">
					<header>
						<h1>请耐心等待...</h1>
					</header>
					<h2>Connecting to <span id="ssid-wait"></span></h2>
					<section>
						<div id="loading">
							<div class="spinner"><div class="double-bounce1"></div><div class="double-bounce2"></div></div>
							<p class="tctr">当esp32重新校准其无线电时，您可能会失去wifi访问权限。请等待您的设备自动重新连接。这可能需要30秒。</p>
						</div>
						<div id="connect-success">
							<h3 class="gr">成功!</h3>
						</div>
						<div id="connect-fail">
							<h3 class="rd">连接失败</h3>
							<p class="tctr">如果有的话，请仔细检查wifi密码，并确保接入点有良好的信号。</p>
						</div>
					</section>
					<div class="buttons">
						<input id="ok-connect" type="button" value="OK" class="ctr" />
					</div>
				</div>
				<div id="connect-details">
					<div id="connect-details-wrap">
						<header>
							<h1></h1>
						</header>
						<h2></h2>
						<section>
							<div class="buttons">
								<input id="disconnect" type="button" value="Disconnect" class="ctr"/>
							</div>
						</section>
						<h2>IP Address</h2>
						<section>
							<div class="ape brdb">IP 地址:<div id="ip" class="fr"></div></div>
							<div class="ape brdb">子网掩码:<div id="netmask" class="fr"></div></div>
							<div class="ape">默认网关:<div id="gw" class="fr"></div></div>
						</section>
						<div class="buttons">
							<input id="ok-details" type="button" value="OK" class="ctr" />
						</div>
					</div>					
					<div id="diag-disconnect" class="diag-box">
						<div class="diag-box-win">
							<p>你确定你想断开这个wifi吗？</p>
							<div class="buttons">
								<input id="no-disconnect" type="button" value="No" />
								<input id="yes-disconnect" type="button" value="Yes" />
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="credits">
			<header>
				<h1>关于这个应用...</h1>
			</header>
			<h2></h2>
			<section>
				<p><strong>esp32-wifi-manager</strong>, &copy; 2017, Tony Pottier<br />MIT许可下的许可证。</p>
				<p>
					没有以下库，这个应用程序是不可能的：
				</p>
				<ul>
					<li>SpinKit, &copy;  2015年，Tobias Ahlin。根据MIT许可证获得许可。</li>
					<li>jQuery, jQuery基金会。根据MIT许可证获得许可。</li>
					<li>cJSON, &copy; 2009-2017，Dave Gamble和cJSON贡献者。根据MIT许可证获得许可。</li>
				</ul>
			</section>
			<div class="buttons">
				<input id="ok-credits" type="button" value="OK" class="ctr" />
			</div>
		</div>
	</body>
<html>